import type { App } from 'vue';

import copyText from './common/copyText';
import hasPermi from './permission/hasPermi';
import hasRole from './permission/hasRole';

export default function directive(app: App) {
  app.directive('hasRole', hasRole);
  app.directive('hasPermi', hasPermi);
  app.directive('copyText', copyText);
}
